module.exports = {
  transpileDependencies: ["@xdh/my"],
  chainWebpack(chain) {
    chain.resolve.alias.set("$ui", "@xdh/my/ui/lib");
  },
  configureWebpack: {
    devtool: "#eval-source-map"
  },
  devServer: {
    proxy: {
      //配置跨域
      "/gisapi": {
        target: "http://192.168.6.2:8096/",
        changOrigin: true, //允许跨域
        pathRewrite: {
          "^/gisapi": ""
        }
      },
      "/api": {
        target: "http://192.168.6.2:321/",
        changOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
